package biz.obake.team.touchprotector.features.tasker;

import android.os.Bundle;
import biz.obake.team.touchprotector.c;

public class a {

    /* renamed from: a  reason: collision with root package name */
    private Bundle f1690a;

    public a(Bundle bundle) {
        this.f1690a = bundle;
    }

    public a(String str) {
        Bundle bundle = new Bundle();
        this.f1690a = bundle;
        bundle.putInt("major.ver", 1);
        this.f1690a.putInt("minor.ver", 0);
        this.f1690a.putInt("app.ver", c.l());
        this.f1690a.putString("action", str);
    }

    public String a() {
        return this.f1690a.getString("action", (String) null);
    }

    /* JADX WARNING: Can't fix incorrect switch cases order */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public java.lang.String b() {
        /*
            r5 = this;
            android.os.Bundle r0 = r5.f1690a
            java.lang.String r1 = "action"
            r2 = 0
            java.lang.String r0 = r0.getString(r1, r2)
            int r1 = r0.hashCode()
            r2 = 3
            r3 = 2
            r4 = 1
            switch(r1) {
                case -975455218: goto L_0x0032;
                case -880441993: goto L_0x0028;
                case -852579993: goto L_0x001e;
                case 1122504188: goto L_0x0014;
                default: goto L_0x0013;
            }
        L_0x0013:
            goto L_0x003c
        L_0x0014:
            java.lang.String r1 = "app.quit"
            boolean r0 = r0.equals(r1)
            if (r0 == 0) goto L_0x003c
            r0 = 3
            goto L_0x003d
        L_0x001e:
            java.lang.String r1 = "lock.unlock"
            boolean r0 = r0.equals(r1)
            if (r0 == 0) goto L_0x003c
            r0 = 1
            goto L_0x003d
        L_0x0028:
            java.lang.String r1 = "lock.toggle"
            boolean r0 = r0.equals(r1)
            if (r0 == 0) goto L_0x003c
            r0 = 2
            goto L_0x003d
        L_0x0032:
            java.lang.String r1 = "lock.lock"
            boolean r0 = r0.equals(r1)
            if (r0 == 0) goto L_0x003c
            r0 = 0
            goto L_0x003d
        L_0x003c:
            r0 = -1
        L_0x003d:
            if (r0 == 0) goto L_0x0058
            if (r0 == r4) goto L_0x0054
            if (r0 == r3) goto L_0x0050
            if (r0 == r2) goto L_0x0048
            java.lang.String r0 = "?"
            return r0
        L_0x0048:
            r0 = 2131623995(0x7f0e003b, float:1.8875157E38)
        L_0x004b:
            java.lang.String r0 = biz.obake.team.touchprotector.c.w(r0)
            return r0
        L_0x0050:
            r0 = 2131623997(0x7f0e003d, float:1.8875161E38)
            goto L_0x004b
        L_0x0054:
            r0 = 2131623998(0x7f0e003e, float:1.8875163E38)
            goto L_0x004b
        L_0x0058:
            r0 = 2131623993(0x7f0e0039, float:1.8875153E38)
            goto L_0x004b
        */
        throw new UnsupportedOperationException("Method not decompiled: biz.obake.team.touchprotector.features.tasker.a.b():java.lang.String");
    }

    public Bundle c() {
        return this.f1690a;
    }

    public boolean d() {
        char c2 = 65535;
        if (this.f1690a.getInt("major.ver", -1) != 1 || this.f1690a.getInt("minor.ver", -1) > 0) {
            return false;
        }
        String string = this.f1690a.getString("action", "no_action");
        switch (string.hashCode()) {
            case -975455218:
                if (string.equals("lock.lock")) {
                    c2 = 0;
                    break;
                }
                break;
            case -880441993:
                if (string.equals("lock.toggle")) {
                    c2 = 2;
                    break;
                }
                break;
            case -852579993:
                if (string.equals("lock.unlock")) {
                    c2 = 1;
                    break;
                }
                break;
            case 1122504188:
                if (string.equals("app.quit")) {
                    c2 = 3;
                    break;
                }
                break;
        }
        return c2 == 0 || c2 == 1 || c2 == 2 || c2 == 3;
    }
}
